#include <iostream>

using namespace std;

class person {
	public:
		int m_Age;
		string m_Name;

		person(int inputAge, string inputName): m_Age(inputAge), m_Name(inputName) {

		}
};

template<typename T>

bool myCompare(T a, T b) {
	if (a == b) {
		return true;
	} else {
		return false;
	}
}

template<> bool myCompare(person a, person b) {
	if (a.m_Age == b.m_Age && a.m_Name == b.m_Name) {
		return true;
	} else {
		return false;
	}
}

void test1() {
	person p1(18, "tom");
	person p2(18, "tom");
	cout << myCompare(p1, p2) << endl;

}

void test2() {
	person p1(18, "tom");
	person p2(19, "tom");
	cout << myCompare(p1, p2) << endl;

}


int main() {
	test1();
	test2();
	return 0;
}